<template>
  <div class="card-type" v-if="true">
    <div class="card-type-inside">
      <div class="header">
        <div class="left item">
          <img alt="左侧" src="@/components/assets/images/design/1-12.webp" />
        </div>
        <div class="middle item">请选择查询时间</div>
        <div class="right item">
          <img alt="右侧" src="@/components/assets/images/design/1-12.webp" />
        </div>
      </div>
      <el-row class="patient-number-area">
        <div class="One">
          <div class="title">查询时间</div>
          <van-datetime-picker
            v-model="startDate"
            type="date"
            class="custom-datetime-picker"
            item-height="100px"
            visible-item-count="2"
            :show-toolbar="false"
          />
        </div>
       
        <div class="btnBox" @click="sureBtn">确定</div>
      </el-row>
    </div>
  </div>
</template>

<script>
import { AndroidToWeb, buildParentApi } from "@/utils/designer/util";
import { translateTime } from "@/utils/common";
export default {
  name: "QueryTimeSingle",

  componentName: "QueryTimeSingle",

  components: {},
  
  props:{
    formPage: {
      type: String,
      default: ''
    }
  },

  data() {
    return {
      startDate: new Date(2025, 1, 1),
    };
  },

  computed: {
    patientInfo() {
      return this.$store.getters["DRCbiz/getPatientInfo"];
    },
  },

  mounted() {},

  methods: {
    sureBtn() {
       let time = translateTime(this.startDate)
      this.$emit('QueryTimeSingleSure',time)
    },
   
  },
};
</script>

<style scoped lang="scss">
@import "./assets/style";
</style>